@extends('layouts.tankuang')

@section('content')
        <form name="add_form" id="add_form" action="http://nb.yntosite.com/admin/xz/add_zxup/{{$id}}/other/{{$jrid}}" method="post" enctype="multipart/form-data">
            <input type="hidden" name="_token" value="{{ csrf_token() }}">

         


            <div id="div_print">
                <h2 class="text-center mg_b36 mg_t25" style="font-weight:bold;">{{$uptype->name}}</h2>
                <table class="table-form table-border w mg-auto">
                    <tbody>

        
                    <tr>
                        <td class="font-bd">材料一</td>
                        <td colspan="5"><input type="file" name="pic[]" style="width: 140px"></td>
                    </tr>


                    <tr>
                        <td class="font-bd">材料二</td>
                        <td colspan="5"><input type="file" name="pic[]" style="width: 140px"></td>
                    </tr>


                    <tr>
                        <td class="font-bd">材料三</td>
                        <td colspan="5"><input type="file" name="pic[]" style="width: 140px"></td>
                    </tr>


                    <tr>
                        <td class="font-bd">材料四</td>
                        <td colspan="5"><input type="file" name="pic[]" style="width: 140px"></td>
                    </tr>


                    <tr>
                        <td class="font-bd">材料五</td>
                        <td colspan="5"><input type="file" name="pic[]" style="width: 140px"></td>
                    </tr>





                    </tbody>
                </table>

            
                <div class="w wbt mg_t25 pd_b20 text-center">
               <!--  <input type="submit">确定</input> -->
                    <button id="go" type="button" class="easyui-linkbutton dsp" data-options="iconCls:'icon-save'">确定</button>
                    <button type="button" class="easyui-linkbutton dsp" data-options="iconCls:'icon-no'" onclick="$('#tk').window('close')">关闭</button>
                </div>
            </div>
        </form>

        
        <script>
            $('#go').click(function (){

                var url = 'add_zxup/'+{{$id}}+'/other/'+{{$jrid}};
                

                var formData = new FormData($("#add_form")[0]);
     

                $.ajax({
                    cache: true,
                    type: "POST",
                    url: url,
                    data: formData,
                    async: false,
                  
                    contentType: false,
                    processData: false,

                    success: function(data) {
                        if(data.status == 1){
                            $.messager.alert('信息提示',data.msg,'info');
                            $('#tk').dialog('close');
                           
                        }else {
                            $.messager.alert('信息提示',data.msg,'info');
                        }
                    }
                });
            });
        </script>

       



@stop